package com.damuzee.system.admin.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.damuzee.system.admin.domain.EmpUser;
import com.damuzee.system.admin.web.RequestUtil;

@Controller
public class WelcomeAct {
	@RequestMapping("/index.do")
	public String index() {
		return "/index";
	}

	@RequestMapping("/top.do")
	public String top(HttpServletRequest request, ModelMap model) {
	 
		EmpUser user = RequestUtil.getUser();
		model.addAttribute("user", user);
		return "/top";
	}

	@RequestMapping("/main.do")
	public String main() {
		return "/main";
	}

	@RequestMapping("/left.do")
	public String left() {
		return "/left";
	}

	@RequestMapping("/right.do")
	public String right(HttpServletRequest request, ModelMap model) {
		 
		return "/right";
	}

}
